﻿using IdentityServer.Domain.Entities;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IdentityServer.Infrastructure.Configs
{
    public class EmailCodeConfig:IEntityTypeConfiguration<EmailCode>
    {

        public void Configure(EntityTypeBuilder<EmailCode> builder)
        {
            builder.ToTable("EmailCodes").HasKey(x=>x.Id);
        }
    }
}
